<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
<title></title>
    <style>
        *{
            padding: 0;
        }
        .menu{
            width: 720px;
            height: 60px;
            margin: 0 auto;
            background-color: #EFEFEF;
            font-size: 14px;
        }
        .menu ul{
            list-style: none;
        }
        .menu ul li{
            float: left;
            width: 120px;
            height: 60px;
            line-height: 60px;
            text-align: center;
            cursor: pointer;
        }
    </style>
<script type="text/javascript" src="JS/jquery-3.5.1.min.js"></script>
</head>

<body>
<script type="text/javascript">
    $(document).ready(function(){
        $("ul li").hover(function(){
            $(this).css({color:"#FFFFFF","background":"red"});
        },function(){
            $(this).css({color:"#000000","background":"#EFEFEF"});
        });
    });
</script>
<div class="menu">
    <ul>
        <li>平板电视</li>
        <li>冰箱洗衣机</li>
        <li>厨房小电</li>
        <li>厨卫大电</li>
        <li>生活电器</li>
        <li>空调</li>
    </ul>
</div>

</body>
</html>